package com.sanley.piss.model.po;

import com.sanley.piss.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@ToString
@EqualsAndHashCode
@Data
@ApiModel(value = "家庭成员信息表",description = "家庭成员信息表说明")
public class Family extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -3060397301576724475L;

    @ApiModelProperty(value = "员工ID",hidden = true)
    private Integer employeeId;

    @ApiModelProperty(value = "员工关系ID",hidden = true)
    private Integer relationId;

    @ApiModelProperty(value = "家属姓名")
    @NotBlank(message = "姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "成员生日")
    private Date familyBirthday;

    @ApiModelProperty(value = "联系方式")
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "[1-9][0-9]{10,10}",message = "请输入正确手机号码")
    private String memberPhone;

    @ApiModelProperty(value = "服装型号")
    private String memberCloModel;

    @ApiModelProperty(value = "鞋号")
    @Pattern(regexp = "[1-9][0-9]{1,1}", message = "请输入正确的鞋码")
    private String memberThose;

    @ApiModelProperty(value = "过敏药")
    private String memberAllerm;

    @ApiModelProperty(value = "是否为公司员工",example = "0：是  1：否")
    private Integer empcom;
}